LET X = BALLOON * 64 - 32 ' calculate an X for this balloon
Subtracting 32 from X for each center moves each balloon to the left by 32. This program is starting to get pretty sophisticated, so if you don't quite see this, don't worry terribly. Typing in the program and playing with it might help.
Here is the complete program:
' Draw 10 Red Balloons SCREEN 12 ' start up graphics COLOR 4 ' set the pen color to red ' LET BALLOON = 1 ' start with balloon number 1 DO WHILE BALLOON <= 10 ' end with balloon number 10 LET X = BALLOON * 64 - 32 ' calculate an X for this balloon CIRCLE (X, 100), 25 ' draw a balloon LET BALLOON = BALLOON + 1 ' go on to next balloon LOOP ' END
Do balloons need strings?